import request from '/@/utils/request';
const headers = {
	onlyData: true,
};
//申报详情
export const getByIdAppDeclare = (params: any) => {
	return request({
		url: `manage/app/declare/getByIdAppDeclare/`+params,
		method: 'get',
        // params,
		// headers,
	});
};
//导出
export const detaExport = (data: any) => {
	return request({
		url: `manage/app/declare/budget/export`,
		method: 'post',
        data,
		responseType: 'blob',
		// headers,
	});
};

//申报
export const submit = (data: any) => {
	return request({
		url: `manage/app/declare/submit`,
		method: 'post',
        data,
		// headers,
	});
};
//撤销
export const declareCancel = (data: any) => {
	return request({
		url: `manage/app/declare/cancel/`+data,
		method: 'post',
	});
};
//审核
export const declareApprove = (data: any) => {
	return request({
		url: `manage/app/declare/approve`,
		method: 'post',
		data,
	});
};
//删除
export const declareDelete = (data: any) => {
	return request({
		url: `manage/app/declare/delete/`+data,
		method: 'delete',
	});
};